/******************************************************************************
 * 
 * Announce: CSharpKit, Basic algorithms, components and definitions.
 *           Copyright (C) ShenYongchen.
 *           All rights reserved.
 *   Author: 申永辰.郑州 (shenyczz@163.com)
 *  WebSite: http://github.com/shenyczz/CSharpKit
 *
 * THIS CODE IS LICENSED UNDER THE MIT LICENSE (MIT).
 * THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 
 * ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
 * IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
 * PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
 * 
******************************************************************************/
using System;
using System.Runtime.InteropServices;

namespace CSharpKit.Native.BLAS
{
    partial class cblas
    {
        // A
        #region Auxiliary - Auxiliary routines for Level 2 and 3 BLAS

        /// <summary>
        /// 原型：logical lsame_(char* ca, char* cb) <br/>
        /// 功能：CA and CB specify the single characters to be compared.<br/>
        /// 状态：pass
        /// </summary>
        /// <param name="ca">CA is CHARACTER*1</param>
        /// <param name="cb">CB is CHARACTER*1</param>
        /// <returns>returns .TRUE. if CA is the same letter as CB regardless of</returns>
        [DllImport(_dllname_, CharSet = CharSet.Ansi, EntryPoint = "lsame_")]
        internal extern static long lsame_(ref char ca, ref char cb);
        public static long lsame(char ca, char cb)
        { return lsame_(ref ca, ref cb); }

        /// <summary>
        /// 原型：int xerbla_(char* srname, integer* info) <br/>
        /// 功能：
        /// 状态：
        /// </summary>
        /// <param name="srname"></param>
        /// <param name="info"></param>
        /// <returns></returns>
        [DllImport(_dllname_, CharSet = CharSet.Ansi)]
        internal extern static int xerbla_(ref char srname, IntPtr info);

        /// <summary>
        /// 原型：int xerbla_array__(char* srname_array__, integer* srname_len__, integer* info, ftnlen srname_array_len) <br/>
        /// 功能：
        /// 状态：wait
        /// </summary>
        /// <param name="srname_array"></param>
        /// <param name="srname_len"></param>
        /// <param name="info"></param>
        /// <param name="srname_array_len"></param>
        /// <returns></returns>
        [DllImport(_dllname_, CharSet = CharSet.Ansi)]
        internal extern static int xerbla_array__(IntPtr srname_array, IntPtr srname_len, IntPtr info, long srname_array_len);

        #endregion

        //}}@@@
    }


}
